#include "threadPool.h"
/* Usage:  */
int initThreadPool(threadPool_t *pThreadPool,int workerNum){                                  
    pthread_mutex_init(&pThreadPool->mutex,NULL);
    pthread_cond_init(&pThreadPool->cond,NULL);
    initTidArr(&pThreadPool->tidArr,workerNum);
    initQueue(&pThreadPool->taskQueue);
    pThreadPool->exitFlag=0;
    pThreadPool->usrInfo=(usrInfo_t *)calloc(4096,sizeof(usrInfo_t));
    initStack(&pThreadPool->usrInfo->virtulDirectory);
    return 0;
}
